function [matrix] = toMatrix(row)
rows = size(row, 2) / 3;
matrix = zeros(rows,3);
for i=1:rows
    for j = 1:3
    matrix(i,j) = row(1, (i-1)*3 + j);
    end
end
end